import java.util.Scanner;

public class test4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        while (a != 0) {
            if(a < 10) {
                System.out.print(a % 10);
            }else{
                System.out.print(a % 10 + ",");
            }
            a = a / 10;
        }
    }
}
